package com.baizhi.service;

import com.baizhi.entity.Node;
import com.baizhi.entity.Role;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Set;

@Service
public interface RoleService {

    Set<Role> findRolesByAdminAdminName(String adminName);

    List<Map> findPermissionByAdminName(String adminName);

    List<Map> findPermissionByRoleName(List<String> roles);

    List<Node> findSubNodes(Integer id);

    List<Map> findSubIds(Integer parentId);

    List<Role> findAll();

    Role findRoleByName(String roleName);

    void addRole(Role role);

    void removeRoleByName(String roleName);

    void renovateRole(Role role);

}
